<template>
  <div v-if="loading" class="loading">
  </div>
</template>
<script>
  export default {
    data: () => ({
      loading: false
    }),
    methods: {
      start () {
        this.loading = true
      },
      finish () {
        this.loading = false
      }
    }
  }
</script>
<style>
  .loading {width:60px;height:24px;background:url(/static/loading-0.gif) no-repeat}
</style>
